<template>
	<!-- 充值 -->
	<view>
		<view class="container">
			<view class="header flex-c">
				<view>
					账户余额（元）
				</view>
				<view class="balance">
					7712.00
				</view>
			</view>
			<view class="recharge">
				<view class="">
					充值金额
				</view>
				<view class="flex inputer">
					<text>￥</text>
					<input type="text" placeholder="请输入充值金额" />
				</view>
			</view>
			<view class="payway">
				<view class="title">
					选择支付方式
				</view>
				<view class="payList">
					<view class="payItem flex-bc" v-for="(item,index) in payList" :key="index">
						<view class="itemLeft flex-c">
							<image class="wayLogo" :src="item.src" mode=""></image>
							<text>{{item.name}}</text>
						</view>
						<image class="select" src="../../../static/user/select.png" mode="" v-if="curentIndex == index"></image>
						<image class="select" src="../../../static/user/no-choose.png" mode="" v-else></image>
					</view>
				</view>
			</view>
		
			<view class="rechargeBtn flex-c">
				<text>确认充值</text>
			</view>
			
			<view class="warmming">
				<view class="">
					温馨提示：
				</view>
				<view class="content">
					为防止信用卡套现的行为，<text style="color: #F23029;">充值金额30%转为彩金不可提现，70%立即可提.(彩金只可用于购彩，中奖金额随时可提)</text>
				</view>
				<view class="content">
					账户不允许从事无真实交易背景的虚假交易，套现和洗钱等行为均
					违反国家相关法律法规，由此产生的后果由您承担！
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				curentIndex:0,
				payList:[
					{
						src:'../../../static/user/wechat.png',
						name:'微信'
					},
					{
						src:'../../../static/user/alipay.png',
						name:'支付宝'
					},
					{
						src:'../../../static/user/unionpay.png',
						name:'银行卡'
					}
				]
			};
		}
	}
</script>

<style lang="scss" scoped>
	.container{
		padding: 20rpx;
		.header{
			height: 260rpx;
			background: linear-gradient(270deg, #F22F29, #FC6655);
			border-radius: 20rpx;
			flex-direction: column;
			color: #fff;
			font-size: 26rpx;
			.balance{
				font-size: 54rpx;
				margin-top: 10rpx;
			}
		}
		.recharge{
			height: 190rpx;
			background: #FFFFFF;
			box-shadow: 0px 0px 12rpx 0px rgba(0, 0, 0, 0.16);
			border-radius: 20rpx;
			margin: 20rpx 0;
			padding: 40rpx 20rpx;
			box-sizing: border-box;
			font-size: 30rpx;
			color: #333;
			.inputer{
				align-items: center;
				margin-top: 20rpx;
				text{
					font-size: 48rpx;
					font-weight: bold;
				}
				input{
					flex: 1;
				}
			}
		}
		.payway{
			height: 397rpx;
			background: #FFFFFF;
			box-shadow: 0px 0px 12rpx 0px rgba(0, 0, 0, 0.16);
			border-radius: 20rpx;
			padding: 0 20rpx;
			font-size: 28rpx;
			color: #333;
			.title{
				padding-top: 40rpx;
				font-size: 30rpx;
			}
			.payItem{
				height: 104rpx;
				border-top: 1rpx solid #f5f5f5;
				box-sizing: border-box;
				.itemLeft{
					.wayLogo{
						width: 48rpx;
						height: 48rpx;
						margin-right: 20rpx;
					}
				}
				.select{
					width: 28rpx;
					height: 28rpx;
				}
			}
			.payItem:nth-child(1){
				border: none;
			}
		}
		.rechargeBtn{
			color: #fff;
			width: 542rpx;
			height: 88rpx;
			background: linear-gradient(90deg, #FC6655 0%, #F22F29 100%);
			border-radius: 44rpx;
			margin: 60rpx auto 40rpx;
		}
		.warmming{
			font-size: 28rpx;
			color: #666;
			.content{
				text-indent: 20rpx;
				margin-top: 28rpx;
				font-size: 24rpx;
				color: #999;
			}
		}
	}
</style>
